#ifndef __STATISTICS_H
#define __STATISTICS_H

#include "app_include.h"

typedef struct
{
	const char *name;	
	uint32_t index;
	uint32_t lastest_tick;
	uint32_t cnt;
	uint32_t max_cnt;
	uint32_t min_cnt;
	float average_cnt;
	uint32_t period;
	float frequence;
	float n;
}statistics_t;


int statistics_register(const char* name,uint32_t period);
int statistics_update(const char *name);
void statistics_monitor( void );


#endif

